package com.example.springboot.exception;

import lombok.Getter;

/**
 * 功能：
 * 作者：sharon
 * 日期：2024-06-20 17:24
 **/
@Getter
public class ServiceException extends RuntimeException{

    private final String code;

    public ServiceException(String msg){
        super(msg);
        this.code = "500";
    }

    public ServiceException(String code,String msg){
        super(msg);
        this.code = code;
    }

}
